package com.carlos.gateway.service;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.carlos.gateway.mapper.SysRoleResourceMapper;
import com.carlos.gateway.pojo.SysRoleResource;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author 李健成
 * @date 2021/10/15
 */

@Service
public class SysRoleResourceService extends ServiceImpl<SysRoleResourceMapper, SysRoleResource> {

    @Autowired
    private SysRoleResourceMapper sysRoleResourceMapper;

    public List<String> listRoleByResource(String resource) {
        return sysRoleResourceMapper.listRoleByResource(resource);
    }

}
